package com.carl.zeus.server.schedule.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.carl.zeus.dao.schedule.ScheduleJobLogMapper;
import com.carl.zeus.model.schedule.ScheduleJobLog;
import com.carl.zeus.server.schedule.ScheduleJobLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("scheduleJobLogService")
public class ScheduleJobLogServiceImpl extends ServiceImpl<ScheduleJobLogMapper, ScheduleJobLog> implements ScheduleJobLogService {

	@Autowired
	private ScheduleJobLogMapper scheduleJobLogMapper;

	@Override
	public Page<ScheduleJobLog> queryPageList(Page<ScheduleJobLog> page, Map<String, Object> map) {
		page.setRecords(scheduleJobLogMapper.queryPageList(page, map));
		return page;
	}
}
